package cn.wen.yinxiu.works.service.impl;

import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import cn.wen.yinxiu.common.toolkit.PageUtils;
import cn.wen.yinxiu.common.toolkit.Query;

import cn.wen.yinxiu.works.dao.WorksTopicRelationDao;
import cn.wen.yinxiu.works.entity.WorksTopicRelationEntity;
import cn.wen.yinxiu.works.service.WorksTopicRelationService;

@Component
@Service("worksTopicRelationService")
public class WorksTopicRelationServiceImpl extends ServiceImpl<WorksTopicRelationDao, WorksTopicRelationEntity> implements WorksTopicRelationService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<WorksTopicRelationEntity> page = this.page(
                new Query<WorksTopicRelationEntity>().getPage(params),
                new QueryWrapper<WorksTopicRelationEntity>()
        );

        return new PageUtils(page);
    }

}